import request from '@/utils/request'

export function save(data) {
  return request({
    url: 'api/resume/save',
    method: 'post',
    data
  })
}

export function saveExp(data) {
  return request({
    url: 'api/experience/save',
    method: 'post',
    data
  })
}

export function saveEdu(data) {
  return request({
    url: 'api/education/save',
    method: 'post',
    data
  })
}

export function savePro(data) {
  return request({
    url: 'api/project',
    method: 'post',
    data
  })
}

export function getResmue() {
  return request({
    url: 'api/resume',
    method: 'get'
  })
}

export function hrGetResume(params) {
  return request({
    url: 'api/resume/hr',
    method: 'get',
    params
  })
}

export function del(ids) {
  return request({
    url: 'api/car',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/car',
    method: 'put',
    data
  })
}

export default { save, edit, del, getResmue, hrGetResume, saveExp, saveEdu, savePro }
